package com.biwin.common.app.dto;

import com.biwin.common.api.dto.IBwDto;
import io.swagger.annotations.ApiModelProperty;

/**
 * TODO
 *
 * @author biwin
 * @since 0.0.1
 */
public abstract class BasicBwDto implements IBwDto {

    @ApiModelProperty(value = "数据库主键id")
    private Long id;

    /**
     * 操作用户
     * <p>
     * 框架自动注入,需在参数中使用 @RequestBody,且该参数一定存在
     */
    @ApiModelProperty(value = "操作用户", hidden = true)
    protected Long operationUser;

    /**
     * 数据版本号
     * <p>
     * 修改数据时比传项,否则每次修改均将变为新增
     */
    @ApiModelProperty(value = "数据版本号", hidden = true)
    protected Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOperationUser() {
        return operationUser;
    }

    public void setOperationUser(Long operationUser) {
        this.operationUser = operationUser;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
